<section id="setuser">
    <section class="userTop">
        <header nz-row>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>姓名</span>
                </label>
                <nz-input [(ngModel)]="parts.driverName" [nzPlaceHolder]="'请输入司机姓名'" [nzSize]="'large'"></nz-input>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>账号</span>
                </label>
                <nz-input [(ngModel)]="parts.driverAccount" [nzPlaceHolder]="'司机的账号'" [nzSize]="'large'"></nz-input>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>联系方式</span>
                </label>
                <nz-input [(ngModel)]="parts.driverMobile" [nzPlaceHolder]="'电话如：130********'" [nzSize]="'large'"></nz-input>
            </div>
            <div nz-col [nzSpan]="6">
                <label>
                    <span>驾驶证类别</span>
                </label>
                <nz-select style="width:60%;margin-left:15px;" [nzPlaceHolder]="'请选择'" [(ngModel)]="parts.driverType" [nzSize]="'large'" nzAllowClear>
                    <nz-option *ngFor="let option of options" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled">
                    </nz-option>
                </nz-select>
            </div>
            <div nz-col [nzSpan]="6" class="twoline">
                <label>
                    <span>状态</span>
                </label>
                <nz-select style="width:60%;margin-left:15px;" [nzPlaceHolder]="'请选择'" [(ngModel)]="parts.auditStatus" [nzSize]="'large'" nzAllowClear>
                    <nz-option *ngFor="let option of optionAuditStatus" [nzLabel]="option.label" [nzValue]="option.value" [nzDisabled]="option.disabled">
                    </nz-option>
                </nz-select>
            </div>
        </header>
        <main class="clearfix">
            <button class="fr" nz-button [nzType]="'primary'" (click)="loadAll()">
              <i class="anticon anticon-search"></i><span>检索</span>
            </button>
        </main>
        <footer>

        </footer>
    </section>
    <section>
        <main>
            <nz-table #nzTable [nzAjaxData]="data" [nzTotal]="total" [nzPageSize]="10" [nzPageIndex]="pageIndex" (nzPageIndexChange)="resetIndex($event)">
                <thead nz-thead>
                    <tr>
                        <th nz-th><span>序号</span></th>
                        <th nz-th><span>账号</span></th>
                        <th nz-th><span>姓名</span></th>
                        <th nz-th><span>性别</span></th>
                        <th nz-th><span>联系方式</span></th>
                        <th nz-th><span>驾驶证类别</span></th>
                        <th nz-th><span>承运次数</span></th>
                        <th nz-th><span>属性</span></th>
                        <th nz-th><span>状态</span></th>
                        <th nz-th><span>操作</span></th>
                    </tr>
                </thead>
                <tbody nz-tbody>
                    <tr nz-tbody-tr *ngFor="let data of nzTable.data;let i = index;">
                        <td nz-td>{{i+1}}</td>
                        <td nz-td>
                            {{data.driverAccount}}
                        </td>
                        <td nz-td>{{data.driverName}}</td>
                        <td nz-td>{{data.sex}}</td>
                        <td nz-td>{{data.driverMobile}}</td>
                        <td nz-td>{{data.driverType}}</td>
                        <td nz-td>{{data.transportNum}}</td>
                        <td nz-td>{{data.logisticsCompanyName}}</td>
                        <td nz-td>{{data.auditStatus}}</td>
                        <td nz-td>
                            <button nz-button [nzType]="'default'" [routerLink]="['../driverinfo', data.driverId ]">
                              <span>查看</span>
                            </button>
                            <button nz-button [disabled]="data.auditStatus == '审核通过'" [nzType]="'default'" [routerLink]="['../driverinfo',data.driverId, 'edit' ]">
                              <span>审核</span>
                            </button>
                        </td>
                    </tr>
                </tbody>
            </nz-table>
        </main>
    </section>
</section>